package com.srtc.uvc;

import android.graphics.Bitmap;

/**
 * Created by android on 6/15/17.
 */

public class JniUvc {


    // Used to load the 'native-lib' library on application startup.
    static {
        System.loadLibrary("jpeg8d");
        System.loadLibrary("uvc");
    }

    public static native void pixeltobmp(Bitmap bitmap1, Bitmap bitmap2);
    // prepareCamera selects the device automatically. please set videoid=0
    public static native int prepareCamera(int videoid);
    // prepareCameraWithBase is used if you want to specify the device manually.
    // e.g., for /dev/video[1,2], use prepareCameraWithBase(0,1).
    // please set videoid=0
    public static native int prepareCameraWithBase(int videoid, int videobase);
    public static native void processCamera();
    public static native void processRBCamera(int lrmode);
    public static native void stopCamera();
}
